package com.zy.web.demo.duoxiancheng.demo28;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/28 14:48
 */
public class ThreadA28 extends Thread {

    private Shenchan28 shenchan28;

    public ThreadA28(Shenchan28 shenchan28){
        this.shenchan28 = shenchan28;
    }

    @Override
    public void run() {
        super.run();
        try {
            while (true){
                shenchan28.shenchan();
                Thread.sleep(3000);
            }
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
